package redstone;

import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.logging.Logger;

public class Example extends JavaPlugin {

    Logger log = Logger.getLogger("Minecraft");

    public void onDisable() {
        log.info("Disabled message here, shown in console on startup");
    }

    public void onEnable() {

        PluginManager pm = this.getServer().getPluginManager();

        pm.registerEvents(new ExamplePlayerListener(this), this);
        pm.registerEvents(new ExampleBlockListener(this), this);
        pm.registerEvents(new ExampleEntityListener(this), this);

    }

}

